import { PureComponent } from 'react'
import { Input, Button, DatePicker } from 'antd'
import SingleTable from 'components/table/index'
import styles from './costControl.less'
const { RangePicker } = DatePicker
export default class OtherCostdata extends PureComponent {
    render(){
        const columns = [
            {
                key: 'gmtCreate',
                title: '转运单号',
                dataIndex: 'gmtCreate',
                align: 'center',
            },
            {
                key: 'operationTypeName',
                title: '费用名称',
                dataIndex: 'operationTypeName',
                align: 'center',
            },
            {
                key: '20',
                title: '费用金额',
                dataIndex: 'operationTypeName',
                align: 'center',
            },
            {
                key: 'creatorName',
                title: '费用成本',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '4',
                title: '费用生产日期',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
              key: '5',
              title: '操作人',
              dataIndex: 'creatorName',
              align: 'center',
            },
          ]
          const dataList = []
        return(
            <div className={styles.costControl}>
                <div className={styles.costControlBox}>
                    <h2>其他费用数据</h2>
                </div>
                <div className={styles.costControlSearch}>
                    <div className={styles.costControlSin}>
                        <span className={styles.costControlSpan}>转运单号：</span>
                        <Input className={styles.costControlInput} />
                    </div>
                    <div className={styles.costControlSin} style={{marginLeft: '28px'}}>
                        <span className={styles.costControlSpan} style={{width: '100px'}}>费用生产日期：</span>
                        <RangePicker className={styles.costControlInput} style={{width: '230px'}}/>
                    </div>
                </div>
                <div className={styles.costControlButton}>
                    <Button type="primary" icon="search">查询</Button>
                </div>
                <div className={styles.costControlTable}>
                   <SingleTable
                        data={{ list: dataList }}
                        columns={columns}
                    />
                </div>
            </div>
        )
    }
}